{% include site/head.html %}
  <body {% if page.body_id %} id="{{ page.body_id }}"{% elsif page.layout == "landingpage" %} id="landingpage"{% endif %}>
    <header class='site-header'>
      {% include site/header.html %}
    </header>

    <div class="page-content">

    {% if page.hero_unit %}
      {% include site/hero_unit.html %}
    {% endif %}

    <div class="grid-wrapper">
      <div class="grid grid-center">
        {% if page.is_post and page.sidebar == false %}
        <div class="grid__item four-fifths lap-one-whole palm-one-whole">
        {% elsif page.is_homepage or page.layout == "landingpage" %}
        <div class="grid__item one-whole">
        {% else %}
        <div class="grid__item two-thirds lap-one-whole palm-one-whole">
        {% endif %}

          {% if page.is_homepage or page.layout == "landingpage"  %}
            {{ content }}
          {% else %}
            {{ content | output_modder }}
          {% endif %}
        </div>

        {% unless page.sidebar == false or page.layout == "landingpage"  %}
        <aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
          {% include site/sidebar.html %}
        </aside>
        {% endunless %}
      </div>
    </div>

    <footer>
      {% include site/footer.html %}
    </footer>

  </div>
    {% include javascripts/scripts.html %}
  </body>
</html>
